package com.goldze.mvvmhabit.widght.expandswipe;

import android.view.LayoutInflater;
import android.view.ViewGroup;

import androidx.annotation.LayoutRes;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.databinding.ViewDataBinding;

import java.util.List;

public interface BindingExpandSwipeAdapter<T> {
    void setTtemBinding(ExpandSwipeItemBinding<T> parentBinding,ExpandSwipeItemBinding<T> childBinding);
    ExpandSwipeItemBinding<T> getParentBinding();
    ExpandSwipeItemBinding<T> getChildBinding();
    void setItems(@Nullable List<T> items);
    T getAdapterItem(int position);
    ViewDataBinding oncreateBinding(LayoutInflater inflater, @LayoutRes int layoutRes, ViewGroup viewGroup);
    void onBindParentBinding(ViewDataBinding dataBinding,int varibleId,@LayoutRes int layoutRes,int parentPosition,T item);
    void onBindChildBinding(ViewDataBinding viewDataBinding,int varibleId,@LayoutRes int layoutRes,int parentPosition,int childPosition,T item);
}
